package com.tairanchina.md.meeting.utils;

import java.math.BigDecimal;

public class MeetingUtil {
	
	/**
	 * 舍去，保留小数位point
	 * @param dd
	 * @param point
	 * @return
	 */
	public static double getPointDouble(double dd,int point){
		BigDecimal   b   =   new   BigDecimal(dd); 
		double   f1   =   b.setScale(point,   BigDecimal.ROUND_HALF_DOWN).doubleValue(); 
		return f1;
	}
	 
	public static void main(String[] args) {
		double dd = getPointDouble(36.9, 1);
		System.out.println("小数点保留一位："+dd);
	}
}
